ValidatedField

constructor(storedValue: T, defaultValue: T = storedValue)

Parameters

T

Type of the wrapped value

storedValue

T. The wrapped value that this field validates, serializes, and syncs between server and client.

defaultValue

T. The default value of the wrapped value